package xiaoka.ecarx.com.cn.youlong;

import android.app.Application;
import android.content.Context;
import android.util.Log;

import xiaoka.ecarx.com.cn.youlong.player.ClientPlayerManager;


/**
 * Created by le.xin on 2016/6/12.
 */
public class YouLongApplication extends Application {

    private static YouLongApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        Log.d("YouLongApplication","-------onCreate--------");
        instance = this;

        ClientPlayerManager.getInstance(instance).init();//应用启动的时候初始化媒体播放器
    }

    public static Context getApplication(){
        return instance;
    }


}
